package app.netant.bt.btrabbit;

import app.netant.bt.MargnetDetail;
import app.netant.bt.MargnetPage;
import app.netant.bt.MargnetRoot;
import cn.lily.com.enviroment.Enviroment;
/**
 * 关键字：18禁ゲーム | 同人ゲーム | 一般ゲーム
 * @author JiaJ
 *
 */
public class BtRabbitRoot extends MargnetRoot {

	@Override
	public String getUrl(int idx) {
		return "https://www.btrabbit.la/search/%E5%90%8C%E4%BA%BA%E3%82%B2%E3%83%BC%E3%83%A0/default-"+idx+".html";
	}

	@Override
	public MargnetPage buildPage(String url) {
		MargnetPage page = new BtRabbitPage(url);
		return page;
	}

	@Override
	public MargnetDetail buildDetail(String url) {
		MargnetDetail detail = new BtRabbitDetail(url);
		return detail;
	}
	
	public static void main(String[] args) {
		Enviroment.createEnv();
		Enviroment.getEnv().getLogBean().beginLog();
		BtRabbitRoot root = new BtRabbitRoot();
		//root.analyse(100);
		root.error();
	}

}
